package com.wish.contract.feign;

import com.wish.dto.contract.HouseDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("contract-house")
public interface HouseFeign {

    @RequestMapping("/house/list")
    public List<HouseDto> list();

    @RequestMapping("/house/getHousesByAddress")
    public List<HouseDto> getHousesByName(@RequestParam String address);
}
